<?php if (!defined('THINK_PATH')) exit();?><div class="row">
          <div class="col-lg-12">
            <div class="card">
              <div class="card-body">
                
                <div class="edit-avatar">
                  <img src="http://q2.qlogo.cn/headimg_dl?bs=QQ%E5%8F%B7&dst_uin=743395324&dst_uin=QQ%E5%8F%B7&;dst_uin=QQ%E5%8F%B7&spec=100&url_enc=0&referer=bu_interface&term_type=PC" alt="..." class="img-avatar">
                  <div class="avatar-divider"></div>
                  <div class="edit-avatar-content">
                    <button class="btn btn-default">修改头像</button>
                    <p class="m-0">选择一张你喜欢的图片，裁剪后会自动生成264x264大小，上传图片大小不能超过2M。</p>
                  </div>
                </div>
                <hr>
                <form id="jane_form"  action="#!">
                  
                  <div class="form-group">
                    <label for="username">密码</label>
                    <input type="password" class="form-control" name="password" value="">
                  </div>
                  <a class="btn btn-label btn-primary" id="send"><label><i class="mdi mdi-checkbox-marked-circle-outline"></i></label> 确认提交</a>
                </form>
       
              </div>
            </div>
          </div>
          
        </div>
<script type="text/javascript">
//post
  $('#send').click(function(){
  lightyear.loading('show');  // 显示
    $.ajax({
    type: "POST",
    url: "<?php echo U('Index/jane_post');?>", 
    data:$('#jane_form').serialize(), 
      success: function(data){  
        if(data.indexOf('操作成功')>=0){
        lightyear.loading('hide');  // 隐藏  
     lightyear.notify('操作成功', 'success', 1000, 'mdi mdi-emoticon-happy', 'top', 'center');
        }else{
     lightyear.notify(data, 'danger', 1000);
      lightyear.loading('hide');  // 隐藏
        }
      }
    });
  });
</script>